package com.ytjj.qmyx.mall.model;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class Orders implements Serializable {
    /**
     * 主键
     *
     * @mbg.generated
     */
    private Integer id;

    /**
     * 订单号
     *
     * @mbg.generated
     */
    private String orderNo;

    /**
     * userId
     *
     * @mbg.generated
     */
    private Integer userId;

    /**
     * 下单手机号
     *
     * @mbg.generated
     */
    private String tel;

    /**
     * 订单状态：0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单;6->退款订单
     *
     * @mbg.generated
     */
    private String orderStatus;

    /**
     * 商品总价格--未进行任何折扣的总价格
     *
     * @mbg.generated
     */
    private BigDecimal goodsMoney;

    /**
     * 收货方式: delivery送货上门 pickup自提
     *
     * @mbg.generated
     */
    private String deliverType;

    /**
     * 订单总金额 打折前总额
     *
     * @mbg.generated
     */
    private BigDecimal totalMoney;

    /**
     * 实际订单总金额,进行各种折扣之后的金额
     *
     * @mbg.generated
     */
    private BigDecimal realTotalMoney;

    /**
     * 抵扣金额
     *
     * @mbg.generated
     */
    private BigDecimal deductionMoney;

    /**
     * 支付方式：pay_delivery货到付款 online_pay在线支付 service客服 score积分
     *
     * @mbg.generated
     */
    private String payType;

    /**
     * 支付来源：vip vip钱包 alipay支付宝 wx微信
     *
     * @mbg.generated
     */
    private String paySource;

    /**
     * 是否支付 0:未支付 1:已支付
     *
     * @mbg.generated
     */
    private Byte isPay;

    /**
     * 收货人名称
     *
     * @mbg.generated
     */
    private String userName;

    private String city;

    private String area;

    private String address;

    private String province;

    /**
     * 收获地址
     *
     * @mbg.generated
     */
    private String userAddress;

    /**
     * 收件人手机
     *
     * @mbg.generated
     */
    private String userPhone;

    /**
     * 所得总积分
     *
     * @mbg.generated
     */
    private Integer orderScore;

    /**
     * 订单备注
     *
     * @mbg.generated
     */
    private String orderRemarks;

    /**
     * 订单来源	h5 h5商城 wx 微信  android安卓App ios苹果App applet小程序 pcpc
     *
     * @mbg.generated
     */
    private String orderSource;

    /**
     * 取消原因
     *
     * @mbg.generated
     */
    private String cancelReason;

    /**
     * 客服名称
     *
     * @mbg.generated
     */
    private String documentary;

    /**
     * 处理时间
     *
     * @mbg.generated
     */
    private Date documentaryTime;

    /**
     * 在线支付交易流水
     *
     * @mbg.generated
     */
    private String tradeNo;

    /**
     * 退款单号
     *
     * @mbg.generated
     */
    private String refundNo;

    /**
     * 是否退款 0 否 1 是
     *
     * @mbg.generated
     */
    private Integer isRefund;

    /**
     * 订单有效标志: 数据真实性 1 真 2 假
     *
     * @mbg.generated
     */
    private Byte flag;

    /**
     * 下单时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 付款时间
     *
     * @mbg.generated
     */
    private Date payTime;

    /**
     * 订单佣金
     *
     * @mbg.generated
     */
    private BigDecimal commissionFee;

    /**
     * 渠道
     *
     * @mbg.generated
     */
    private String channel;

    /**
     * 订单小记
     *
     * @mbg.generated
     */
    private String smallNote;

    /**
     * 是否匿名购买
     *
     * @mbg.generated
     */
    private Integer isAnonymity;

    /**
     * h5token
     *
     * @mbg.generated
     */
    private String h5Token;

    /**
     * 用户注册时间
     *
     * @mbg.generated
     */
    private Date registerTime;

    /**
     * 是否首次（0：否，1：是）
     *
     * @mbg.generated
     */
    private Integer isFirstBuy;

    /**
     * 动态id
     *
     * @mbg.generated
     */
    private Integer dynamicId;

    private Date updateTime;

    /**
     * 组合订单编号
     */
    private String orderParentNo;

    /**
     * 是否需要发票：0不需要；1需要  默认为0
     */
    private Integer isInvoice;

    /**
     * 实名认证人ID
     */
    private Integer realNameId;

    /**
     * 团小圈标识
     * 1-是 2-否
     */
    private Integer circleFlag;

    /**
     * 下单域名
     */
    private String domainUrl;

    /**
     * 订单平台
     */
    private String orderPlatform;

    /**
     * 推广账号
     */
    private String account;

    private Integer ordersInfoId;//订单详情id

    private Integer ordersInfoStatus;//订单详情状态

    private BigDecimal realTotalMoneyRefund;//实际订单总金额,进行各种折扣之后的金额(退款使用)

    private BigDecimal deductionMoneyRefund;//抵扣金额(退款使用)

    private static final long serialVersionUID = 1L;

    public BigDecimal getRealTotalMoneyRefund() {
        return realTotalMoneyRefund;
    }

    public void setRealTotalMoneyRefund(BigDecimal realTotalMoneyRefund) {
        this.realTotalMoneyRefund = realTotalMoneyRefund;
    }

    public BigDecimal getDeductionMoneyRefund() {
        return deductionMoneyRefund;
    }

    public void setDeductionMoneyRefund(BigDecimal deductionMoneyRefund) {
        this.deductionMoneyRefund = deductionMoneyRefund;
    }

    public Integer getOrdersInfoStatus() {
        return ordersInfoStatus;
    }

    public void setOrdersInfoStatus(Integer ordersInfoStatus) {
        this.ordersInfoStatus = ordersInfoStatus;
    }

    public Integer getOrdersInfoId() {
        return ordersInfoId;
    }

    public void setOrdersInfoId(Integer ordersInfoId) {
        this.ordersInfoId = ordersInfoId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public String getOrderStatus() {
        return orderStatus;
    }

    public void setOrderStatus(String orderStatus) {
        this.orderStatus = orderStatus;
    }

    public BigDecimal getGoodsMoney() {
        return goodsMoney;
    }

    public void setGoodsMoney(BigDecimal goodsMoney) {
        this.goodsMoney = goodsMoney;
    }

    public String getDeliverType() {
        return deliverType;
    }

    public void setDeliverType(String deliverType) {
        this.deliverType = deliverType;
    }

    public BigDecimal getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(BigDecimal totalMoney) {
        this.totalMoney = totalMoney;
    }

    public BigDecimal getRealTotalMoney() {
        return realTotalMoney;
    }

    public void setRealTotalMoney(BigDecimal realTotalMoney) {
        this.realTotalMoney = realTotalMoney;
    }

    public BigDecimal getDeductionMoney() {
        return deductionMoney;
    }

    public void setDeductionMoney(BigDecimal deductionMoney) {
        this.deductionMoney = deductionMoney;
    }

    public String getPayType() {
        return payType;
    }

    public void setPayType(String payType) {
        this.payType = payType;
    }

    public String getPaySource() {
        return paySource;
    }

    public void setPaySource(String paySource) {
        this.paySource = paySource;
    }

    public Byte getIsPay() {
        return isPay;
    }

    public void setIsPay(Byte isPay) {
        this.isPay = isPay;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getUserAddress() {
        return userAddress;
    }

    public void setUserAddress(String userAddress) {
        this.userAddress = userAddress;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public Integer getOrderScore() {
        return orderScore;
    }

    public void setOrderScore(Integer orderScore) {
        this.orderScore = orderScore;
    }

    public String getOrderRemarks() {
        return orderRemarks;
    }

    public void setOrderRemarks(String orderRemarks) {
        this.orderRemarks = orderRemarks;
    }

    public String getOrderSource() {
        return orderSource;
    }

    public void setOrderSource(String orderSource) {
        this.orderSource = orderSource;
    }

    public String getCancelReason() {
        return cancelReason;
    }

    public void setCancelReason(String cancelReason) {
        this.cancelReason = cancelReason;
    }

    public String getDocumentary() {
        return documentary;
    }

    public void setDocumentary(String documentary) {
        this.documentary = documentary;
    }

    public Date getDocumentaryTime() {
        return documentaryTime;
    }

    public void setDocumentaryTime(Date documentaryTime) {
        this.documentaryTime = documentaryTime;
    }

    public String getTradeNo() {
        return tradeNo;
    }

    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo;
    }

    public String getRefundNo() {
        return refundNo;
    }

    public void setRefundNo(String refundNo) {
        this.refundNo = refundNo;
    }

    public Integer getIsRefund() {
        return isRefund;
    }

    public void setIsRefund(Integer isRefund) {
        this.isRefund = isRefund;
    }

    public Byte getFlag() {
        return flag;
    }

    public void setFlag(Byte flag) {
        this.flag = flag;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getPayTime() {
        return payTime;
    }

    public void setPayTime(Date payTime) {
        this.payTime = payTime;
    }

    public BigDecimal getCommissionFee() {
        return commissionFee;
    }

    public void setCommissionFee(BigDecimal commissionFee) {
        this.commissionFee = commissionFee;
    }

    public String getChannel() {
        return channel;
    }

    public void setChannel(String channel) {
        this.channel = channel;
    }

    public String getSmallNote() {
        return smallNote;
    }

    public void setSmallNote(String smallNote) {
        this.smallNote = smallNote;
    }

    public Integer getIsAnonymity() {
        return isAnonymity;
    }

    public void setIsAnonymity(Integer isAnonymity) {
        this.isAnonymity = isAnonymity;
    }

    public String getH5Token() {
        return h5Token;
    }

    public void setH5Token(String h5Token) {
        this.h5Token = h5Token;
    }

    public Date getRegisterTime() {
        return registerTime;
    }

    public void setRegisterTime(Date registerTime) {
        this.registerTime = registerTime;
    }

    public Integer getIsFirstBuy() {
        return isFirstBuy;
    }

    public void setIsFirstBuy(Integer isFirstBuy) {
        this.isFirstBuy = isFirstBuy;
    }

    public Integer getDynamicId() {
        return dynamicId;
    }

    public void setDynamicId(Integer dynamicId) {
        this.dynamicId = dynamicId;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getOrderParentNo() {
        return orderParentNo;
    }

    public void setOrderParentNo(String orderParentNo) {
        this.orderParentNo = orderParentNo;
    }

    public Integer getIsInvoice() {
        return isInvoice;
    }

    public void setIsInvoice(Integer isInvoice) {
        this.isInvoice = isInvoice;
    }

    public Integer getRealNameId() {
        return realNameId;
    }

    public void setRealNameId(Integer realNameId) {
        this.realNameId = realNameId;
    }

    public String getDomainUrl() {
        return domainUrl;
    }

    public void setDomainUrl(String domainUrl) {
        this.domainUrl = domainUrl;
    }

    public String getOrderPlatform() {
        return orderPlatform;
    }

    public void setOrderPlatform(String orderPlatform) {
        this.orderPlatform = orderPlatform;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", orderNo=").append(orderNo);
        sb.append(", userId=").append(userId);
        sb.append(", tel=").append(tel);
        sb.append(", orderStatus=").append(orderStatus);
        sb.append(", goodsMoney=").append(goodsMoney);
        sb.append(", deliverType=").append(deliverType);
        sb.append(", totalMoney=").append(totalMoney);
        sb.append(", realTotalMoney=").append(realTotalMoney);
        sb.append(", deductionMoney=").append(deductionMoney);
        sb.append(", payType=").append(payType);
        sb.append(", paySource=").append(paySource);
        sb.append(", isPay=").append(isPay);
        sb.append(", userName=").append(userName);
        sb.append(", city=").append(city);
        sb.append(", area=").append(area);
        sb.append(", address=").append(address);
        sb.append(", province=").append(province);
        sb.append(", userAddress=").append(userAddress);
        sb.append(", userPhone=").append(userPhone);
        sb.append(", orderScore=").append(orderScore);
        sb.append(", orderRemarks=").append(orderRemarks);
        sb.append(", orderSource=").append(orderSource);
        sb.append(", cancelReason=").append(cancelReason);
        sb.append(", documentary=").append(documentary);
        sb.append(", documentaryTime=").append(documentaryTime);
        sb.append(", tradeNo=").append(tradeNo);
        sb.append(", refundNo=").append(refundNo);
        sb.append(", isRefund=").append(isRefund);
        sb.append(", flag=").append(flag);
        sb.append(", createTime=").append(createTime);
        sb.append(", payTime=").append(payTime);
        sb.append(", commissionFee=").append(commissionFee);
        sb.append(", channel=").append(channel);
        sb.append(", smallNote=").append(smallNote);
        sb.append(", isAnonymity=").append(isAnonymity);
        sb.append(", h5Token=").append(h5Token);
        sb.append(", registerTime=").append(registerTime);
        sb.append(", isFirstBuy=").append(isFirstBuy);
        sb.append(", dynamicId=").append(dynamicId);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", orderParentNo=").append(orderParentNo);
        sb.append(", isInvoice=").append(isInvoice);
        sb.append("]");
        return sb.toString();
    }
}
